(function() {
  var Message, Mongoose, Schema;

  Mongoose = require('mongoose');

  Schema = Mongoose.Schema;

  Message = new Schema({
    nick: {
      type: String,
      required: true
    },
    userId: {
      type: Schema.ObjectId,
      required: true
    },
    content: {
      type: String,
      trim: true,
      required: true
    },
    createTime: {
      type: Date,
      "default": Date.now
    }
  });

  module.exports = Message;

}).call(this);
